import menus from './page'
import router from './index'
const dynamicallyAddRouter = () => {
    menus.forEach(item => {
        router.addRoute("index", item)
    })
    router.addRoute({
        path: '/:pathMatch(.*)*',
        redirect: '/404'
    })
}
dynamicallyAddRouter()